/*
 * Mutex.cpp
 *
 *  Created on: Oct 26, 2012
 *      Author: lucas
 */

#include "Mutex.h"

Mutex::Mutex() {
	pthread_mutex_init(&m, NULL);
}

void Mutex::lock() {
	pthread_mutex_lock(&m);
}

void Mutex::unlock() {
	pthread_mutex_unlock(&m);
}

Mutex::~Mutex() {
	pthread_mutex_destroy(&m);
}
